package com.yueke.gemini.exection;

import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 〈一句话功能简述〉<br>
 * 〈继承springBoot自带的异常处理〉
 *
 * @author qinxuewu
 * @create 18/7/16下午10:06
 * @since 1.0.0
 */


public class MainsiteErrorController implements ErrorController {

    private static final String ERROR_PATH = "/error";
    @RequestMapping(value=ERROR_PATH)
    public String handleError(){
        return "errorpage/error";
    }
    @Override
    public String getErrorPath() {
        return ERROR_PATH;
    }

}
